/**
 * Created by xlt on 2017/6/12.
 */
import React from "react";


class ChooseStore extends React.Component {
    render() {
        const {item, selectShopNo, index} = this.props;
        let className = ((index == 0 && selectShopNo == 0) || item.shopNo == selectShopNo) ? "cur" : "";
        return (
            <li>
                <div className={className} onClick={this.transmitCode.bind(this,item.shopNo)}> {item.shopName}</div>
            </li>
        )
    }
    transmitCode(shopNo){
       this.props.shoppingNameChangeColor(shopNo);
    }
}

export default ChooseStore
